// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  app: {
    head: {
      // charset: "utf-8",
      // viewport: 'width=500, initial-scale=1',
      title: "MyLearn Nuxt3",
      meta: [
        { name: "viewport", content: "width=device-width, initial-scale=1" },
        { name: "description", content: "这是一个测试nuxt3 学习nuxt3 的网站" },
        {
          charset: "utf-8",
        },
        // 搜索关键字SEO
        { name: "keyword", content: "nuxt,nuxt3,vite,SSR,typescript" },
      ],
      //如果网址不支持，会出现这个标签
      noscript: [
        // <noscript>JavaScript is required</noscript>
        { children: "必须支持script" },
      ],
    },
    // transitions配置
    layoutTransition: { name: "layout", mode: "out-in" },
    pageTransition: { name: "page", mode: "out-in" },
  },
});
